1. /* existsnc.cpp by K. Tsuru*/
  2. /************************************
  3. Search directory for constant files
  4. "e.snc", "pi.snc" and "log10.snc".
  5. **************************************/
  6. #ifndef SN_H
  7. #include "sn.h"
  8. #endif
  9. #ifndef SNC_FILE_H
  10. #include "sncfile.h" // for three constant files
  11. #endif
  12. bool ExistDirectory(const char* const dir);
  13. bool ExistSncDirectory(char* sncDir){
  14. // search the upper directory
  15. strcpy(sncDir, ".");
  16. strcat(sncDir, SNC_DIR); // ../
  17. if( ExistDirectory((const char*)sncDir) ) return true;
  18. // search the current directory
  19. strcpy(sncDir, SNC_DIR);
  20. if(ExistDirectory(sncDir)) return true;
  21. sncDir[0] = '\0'; // not found
  22. return false;
  23. }

existsnc.cpp : last modifiled at 2015/06/01 14:52:42(690 bytes)
created at 2016/04/11 11:17:20
The creation time of this html file is 2017/10/07 10:54:15 (Sat Oct 07 10:54:15 2017).